package com.hdaccp.dingdan.dao;

import com.hdaccp.pojo.po.Dingdanxq;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface DingdanxqDao extends JpaRepository<Dingdanxq,String> {
    //根据单号查询订单详情
    @Query(value = "SELECT * FROM ddxq WHERE ddid=:ddid",nativeQuery = true)
    public List<Dingdanxq> findByddid(@Param("ddid") String ddid);
}
